package com.intech.android.demo.cms.beans;


import com.intech.android.demo.cms.dao.FactoryDAO;
import com.intech.android.demo.cms.dao.interfaces.*;
import org.apache.log4j.Logger;

import javax.faces.context.FacesContext;

public class BaseBean
{
    private static final Logger log = Logger.getLogger(BaseBean.class);


    protected FacesContext getFacesContext()
    {
        return FacesContext.getCurrentInstance();
    }

    protected AudioContentDAO getAudioContentDAO()
    {
        return FactoryDAO.getFactory().getAudioContentDao();
    }

    protected VideoContentDAO getVideoContentDAO()
    {
        return FactoryDAO.getFactory().getVideoContentDao();
    }

    protected GraphicContentDAO getGraphicContentDAO()
    {
        return FactoryDAO.getFactory().getGraphicsContentDao();
    }

    protected TextContentDAO getTextContentDAO()
    {
        return FactoryDAO.getFactory().getTextContentDao();
    }

    protected GroupDAO getGroupDAO()
    {
        return FactoryDAO.getFactory().getGroupDao();
    }

    protected RegionDAO getRegionDAO()
    {
        return FactoryDAO.getFactory().getRegionDao();
    }

    protected CategoryDAO getCategoryDAO()
    {
        return FactoryDAO.getFactory().getCategoryDao();
    }


}
